package com.ruoyi.system.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

@ApiModel(value = "PostCommentDTO", description = "评论树DTO")
@Data
public class PostCommentDTO {
    @ApiModelProperty("主键ID")
    private Long id;
    @ApiModelProperty("帖子ID")
    private Long postId;
    @ApiModelProperty("用户ID")
    private String userId;
    @ApiModelProperty("评论内容")
    private String content;

    @ApiModelProperty("创建时间")
    private Date createAt;

    @ApiModelProperty("父评论ID")
    private Long parentId;

    private List<PostCommentDTO> children;


}
